﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="account.aspx.cs" Inherits="WebSite.cn.account" %>
<%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %>
<%@ Register Src="category.ascx" TagName="category" TagPrefix="uc2" %>
<%@ Register Src="bottom.ascx" TagName="bottom" TagPrefix="uc3" %>
<%@ Register src="browesProduct.ascx" tagname="browesProduct" tagprefix="uc4" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title><%=WebSite.info.info1("", "shoptitle")%></title>
    <meta name="Description" content="<%=WebSite.info.info1("","shopcontent")%>" /> 
    <meta name="Keywords" content="<%=WebSite.info.info1("","shopkey")%>" />
    <script language="JavaScript" src="../../js/function.js"></script>
    <script language="javascript" type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <link href="/cn/css/idialog.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="/js/orderSubmit.js"></script>
<script type="text/javascript" src="/js/artDialog.js"></script>
<script type="text/javascript" src="/js/iframeTools.source.js"></script>
<script type="text/javascript" src="/js/art_dialog.js"></script>
    <style type="text/css">
        a
        {
         cursor:pointer;
            }
    .divCarGoodsCount
    {
     padding-left:20px;
      color:Red;
      font-size:18px;
        }
      th
      {
       border-collapse: collapse;
       border:  1px solid #2476BA;
       font-size: 10pt;
       background-color:#1E69A7;
       font-weight:normal;
        color:#fff;
       }
        pro02.td
        {
            border-collapse: collapse;
            border:1px solid #2476BA;
            font-size: 10pt;
        }
        #generateCarInfo{ margin-top:20px;}


    </style>
    <script language="javascript" type="text/javascript">


        function writerCarInfo() {
            var pInfo = WebSite.Code.CarGoodsInfo_ajax.GetCarProfInfo().value;
            var gInfo = WebSite.Code.CarGoodsInfo_ajax.GetCarGenerateInfo().value;

            if (pInfo != null) {
                document.getElementById("professCarInfo").innerHTML = pInfo;
            }
            if (gInfo != null) {
                document.getElementById("generateCarInfo").innerHTML = gInfo;
            }

        }

        function deleteCarGoods(carId) {

            $.ajax({
                type: "POST",
                url: "/isAddToAccountHandler.ashx",
                data: "deleteid=" + carId ,
                success: function (msg) {
                     if (msg == "1003") {

                         setTimeout("writerCarInfo();", 2000);
                         art.dialog.tips("删除成功！", 0.5);
                    }
                    else  {
                        art.dialog.tips("删除失败！", 1);
                    }
                }
            });
            return false;
        }



        function updateCarGoodsCount(count, carId) {

            if (count == 0) return;
            $.ajax({
                type: "POST",
                url: "/isAddToAccountHandler.ashx",
                data: "count=" + count +"&updateid=" + carId,
                success: function (msg) {
                    if (msg == "1003") {

                        setTimeout("writerCarInfo();", 2000);
                        art.dialog.tips("修改成功！", 0.5);
                    }
                    else {
                        art.dialog.tips("删除失败！", 1);
                    }
                }
            });
            return false;
        }


        function setCity() {

            //  alert($("#ddlProvence").val());
            if ($("#ddlProvence").val() == "") return false;
            $("#ddlCity").empty();
            $.ajax({
                type: "POST",
                url: "/getCityHanlder.ashx",
                data: "id=" + $("#ddlProvence").val() + "&tid=" + $("#hdDeliveryTemplateId").val(),
                success: function (msg) {
                   
                    $("#ddlCity").append(msg);

                }
            });
            return false;
        }


        $(document).ready(function () {
            writerCarInfo();
        });
     
    </script>


</head>
<body>
  <form id="form1" runat="server"  >

<uc1:head ID="head_1" runat="server" />
    <center>	

<div id="container">
      

       <input id="hdDeliveryTemplateId" type="hidden" value="<%= DeliveryTemplateId %>"   />   
   <div style="width:200px; vertical-align:top;  float:left; text-align:left;"> 
      <uc4:browesProduct ID="browesProduct1" runat="server" />
      </div> 
	  <div class="pro02" style="float:right; width:820px;"><br />
		<div>
          <div align="left" ><% Response.Write(GetAccountMoney()); %></div>
          <div id="professCarInfo"></div>
      
          <div id="generateCarInfo">
             
            </div>
		</div>
        <br />
		  
		<input name="sumCardGoodsPoints" id="sumCardGoodsPoints" type="hidden" value="0" />
        <input name="sumGenerateGoodsPoints" id="sumGenerateGoodsPoints" type="hidden" value="0" />
		<div>
	       <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#efefef">
		     <tr>
		       <td height="25" bgcolor="#1E69A7" class="white_bold">　<strong><font color="#ffffff">收货人信息</font></strong></td>
		       <td align="left" bgcolor="#1E69A7" class="white_bold"></td>
	        </tr>
		     <tr>
		       <td width="130" height="25" align="right" bgcolor="#FFFBF4">姓 名：</td>
		       <td align="left" bgcolor="#FFFFFF">　
	           <input name="cname" id="cname" value="<%=cname %>" class="box" size="20" maxlength="100" type="text" />
               <span id="spCname" ></span>
               </td>
	        </tr>
		     <tr>
		       <td height="25" align="right" bgcolor="#FFFBF4">联系电话：</td>
		       <td align="left" bgcolor="#FFFFFF">　
	           <input name="tel" id="tel" value="<%=tel %>" class="box" size="20" maxlength="20" type="text" />
                   </td>
	        </tr>
		     <tr>
		       <td height="25" align="right" bgcolor="#FFFBF4">手 机：</td>
		       <td align="left" bgcolor="#FFFFFF">　
	           <input name="phone" id="phone" value="<%=phone %>" class="box" size="20" maxlength="20" type="text" />
               <span id="spTel"></span>
               </td>
	        </tr>
		     <tr style="display:none">
		       <td height="25" align="right" bgcolor="#FFFBF4">邮 编：</td>
		       <td align="left" bgcolor="#FFFFFF">　
	           <input name="post" id="post" value="<%=post %>" class="box" size="20" maxlength="20" type="text" />*</td>
	        </tr>
		     <tr>
		       <td height="25" align="right" bgcolor="#FFFBF4">送货地址：</td>
		       <td align="left" bgcolor="#FFFFFF">　

                       <asp:DropDownList ID="ddlProvence" runat="server" onchange="setCity()"  >
                        <asp:ListItem  Text="请选择省" Value=""></asp:ListItem>
                       </asp:DropDownList>
                       <asp:DropDownList ID="ddlCity" runat="server">
                       <asp:ListItem  Text="请选择地区" Value=""></asp:ListItem>
                       </asp:DropDownList>
 

	          

            
            </td>
                </tr>
               <tr>
           <td height="25" align="right" bgcolor="#FFFBF4"></td>
              <td align="left" bgcolor="#FFFFFF" >　
                   <input name="address" id="address" value="<%=address %>" class="box" size="50" maxlength="255" type="text" />
                  <span id="spAddress"></span>
            </td>
            </tr>

	       

		     <tr  style="display:none">
		       <td height="25" align="right" bgcolor="#FFFBF4">E-MAIL：</td>
		       <td align="left" bgcolor="#FFFFFF">　
	           <input name="email" id="email" value="<%=email %>" class="box" size="50" maxlength="255" type="text" />
               
               </td>
	        </tr>
		     <tr>
		       <td height="25" align="right" bgcolor="#FFFBF4">送货日期：</td>
		        <td align="left" bgcolor="#FFFFFF" >　
      <input name="senddate" id="senddate"   class="Wdate" value="<%= SendDate%>"  onclick="WdatePicker()"  style="width:100px;"/>
   
           
	           </td>
	        </tr>
            <tr>
           <td height="25" align="right" bgcolor="#FFFBF4"></td>
              <td align="left" bgcolor="#FFFFFF" >　
                  *此日期为发货日期，不是到货日期,但由于快递送达时间不受人为因素所控制，实际到货前后会有一天的误差。不便之处敬请谅解！请确保手机畅通！  
            </td>
            </tr>
 
		     <tr>
		       <td height="25" align="right" bgcolor="#FFFBF4">备 注：</td>
		       <td align="left" bgcolor="#FFFFFF">　
	               如您对发货时间有所疑问,请拨打400-720-5117
               </td>
	        </tr>
	      </table>
	     
		</div>


        <div style="width:100%; text-align:left; display:none;" >
        订单号：<asp:Label ID="lblordercode"  runat="server" ForeColor="Red"><%=tempOrderCode%></asp:Label>
        <input name="ordercode" id="ordercode" type="hidden" value="<%=tempOrderCode%>" /> 
        </div>
         <table width="100%" border="0" cellpadding="0" cellspacing="0" >
          <tr>
          
            <td height="30" align="center">
            <br />
            <input type="hidden" name="TempType" value="<%=TempType%>" />
            <input type="hidden" name="action" value="add" />
            <img id="btnSubmit" src="/cn/images/redirect_submit.png" alt="直接提交"  style="cursor:pointer;"/>
                <%if (base.LoginUserMember == null || (base.LoginUserMember.IsCard == true && base.LoginUserMember.DicUserCardList != null && base.LoginUserMember.DicUserCardList.Count >=0)) %>             <% { %>&nbsp;&nbsp; <img id="btnLoginSubmit" src="/cn/images/login_submit.png" alt="直接提交"  style="cursor:pointer;"/>
                <%} %>
            </td>
          </tr>
          <tr>
          
            <td height="30" align="left">
               <b> <font color='red'>*注册会员好处：</font></b>
               <ul style="padding-left:80px; list-style-type:disc;" >
                 <li> 可在“会员专区”中管理自己的各种订单信息。</li>
                 <li>可以及时获得最新的资讯、促销信息、提醒服务。</li>
                 <li> 后期将会推出更多服务。</li>
                  </ul>
                </td>
          </tr>
        </table>
        <br />

       
	  </div>
      
</div>   
    <div class="clear"></div>
  <uc3:bottom ID="bottom_1" runat="server" />

</center>
       </form>
</body>
</html>
